<?php

namespace app\http\middleware;

class CheckAd
{
    public function handle($request, \Closure $next)
    {
    	if(!session("?username")){
    		return redirect('home/home/login')->with('msg','请先登录')->with('code',0);
    	}
    	return $next($request);
    }
}
